<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"       xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/resources/templates/template_site.xhtml">
        
        <ui:define name="content">
                <p:panel header="#{bundle.ListCommandefourTitle}" styleClass="jsfcrud_list_form">
                <h:panelGroup id="messagePanel" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                </h:panelGroup>
                <h:outputText escape="false" value="#{bundle.ListCommandefourEmpty}" rendered="#{commandefourController.items.rowCount == 0}"/>
                <h:panelGroup rendered="#{commandefourController.items.rowCount > 0}">
                    <h:outputText value="#{commandefourController.pagination.pageFirstItem + 1}..#{commandefourController.pagination.pageLastItem + 1}/#{commandefourController.pagination.itemsCount}"/>&nbsp;
                    <p:commandLink action="#{commandefourController.previous}" value="#{bundle.Previous} #{commandefourController.pagination.pageSize}" rendered="#{commandefourController.pagination.hasPreviousPage}"/>&nbsp;
                    <p:commandLink action="#{commandefourController.next}" value="#{bundle.Next} #{commandefourController.pagination.pageSize}" rendered="#{commandefourController.pagination.hasNextPage}"/>&nbsp;
                    <p:dataTable value="#{commandefourController.items}" var="item" rows="8">
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListCommandefourTitle_idcomfour}"/>
                            </f:facet>
                            <h:outputText value="#{item.idcomfour}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListCommandefourTitle_datecomfour}"/>
                            </f:facet>
                            <h:outputText value="#{item.datecomfour}">
                                <f:convertDateTime pattern="MM/dd/yyyy" />
                            </h:outputText>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListCommandefourTitle_iditem}"/>
                            </f:facet>
                            <h:outputText value="#{item.iditem}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListCommandefourTitle_idfour}"/>
                            </f:facet>
                            <h:outputText value="#{item.idfour}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="&nbsp;"/>
                            </f:facet>
                            <p:commandLink action="#{commandefourController.prepareView}" value="#{bundle.ListCommandefourViewLink}"/>
                            <h:outputText value=" "/>
                            <p:commandLink action="#{commandefourController.prepareEdit}" value="#{bundle.ListCommandefourEditLink}"/>
                            <h:outputText value=" "/>
                            <p:commandLink action="#{commandefourController.destroy}" value="#{bundle.ListCommandefourDestroyLink}"/>
                        </p:column>
                    </p:dataTable>
                </h:panelGroup>
                <br />
                <p:commandLink action="#{commandefourController.prepareCreate}" value="#{bundle.ListCommandefourCreateLink}"/>
                <br />
                <br />
                <p:commandLink value="#{bundle.ListCommandefourIndexLink}" action="/pages/index" immediate="true" />
                </p:panel>
             
        </ui:define>
    </ui:composition>

</html>
